/****监控看板 */

import {THINGS,NODES,THINGSById} from '@/services/api'
import {request, METHOD} from '@/utils/request'
const BASE_URL = 'http://112.124.65.24'
/**
 * 监控看板服务
 */
export async function getThings(params) {
  return request(THINGS, METHOD.GET,{...params})
}
/**
 * 监控看板ById
 */
export async function getThingsById(id) {
    return request(THINGSById+id, METHOD.GET)
  }
  /**
 * 监控看板特征
 */
  export async function getThingsBycharact(id) {
    return request(`${BASE_URL}/things/${id}/characteristics`, METHOD.GET)
  }
  /**
 * 监控看板属性
 */
  export async function getThingsByPropert(id) {
    return request(`${BASE_URL}/things/${id}/propertysets`, METHOD.GET)
  }
//节点
export async function getNodes() {
    return request(NODES, METHOD.GET)
  }

